package com.itdct.onflow.gateway

import org.slf4j.LoggerFactory
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient

/**
 * @author Zhouwx
 * @date 2025/10/11 14:01:32
 * @version 1.0
 * @description
 */
@EnableDiscoveryClient
@SpringBootApplication
class OnflowGatewayBoot

fun main(args: Array<String>) {
    val logger = LoggerFactory.getLogger("OnflowGatewayBoot")
    logger.info("Onflow网关开始启动")

    runApplication<OnflowGatewayBoot>(*args)

    Runtime.getRuntime().addShutdownHook(Thread {
        logger.warn("Onflow网关即将关闭")
    })
}